package com.share.device.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.share.common.core.annotation.Excel;
import com.share.common.core.web.domain.BaseEntity;

/**
 * 人员信息对象 personnel
 * 
 * @author Serendipity
 * @date 2025-06-27
 */
public class Personnel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 人员ID */
    private Long userId;

    /** 登录账号 */
    @Excel(name = "登录账号")
    private String username;

    /** 加密密码 */
    @Excel(name = "加密密码")
    private String password;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 角色 */
    @Excel(name = "角色")
    private String role;

    /** 所属区域ID */
    @Excel(name = "所属区域ID")
    private Long areaId;

    /** 状态(0:禁用,1:启用) */
    @Excel(name = "状态(0:禁用,1:启用)")
    private Integer status;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLogin;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setRole(String role) 
    {
        this.role = role;
    }

    public String getRole() 
    {
        return role;
    }

    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setLastLogin(Date lastLogin) 
    {
        this.lastLogin = lastLogin;
    }

    public Date getLastLogin() 
    {
        return lastLogin;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("realName", getRealName())
            .append("phone", getPhone())
            .append("role", getRole())
            .append("areaId", getAreaId())
            .append("status", getStatus())
            .append("lastLogin", getLastLogin())
            .append("createTime", getCreateTime())
            .toString();
    }
}
